<?php
namespace app\livevideo\controller;
use app\ApiRest;
use think\App;
use app\livevideo\model\LiveVideo as model;


class IndexLive extends ApiRest
{

    protected  $model;

    public function __construct(App $app) {

        parent::__construct($app);

        $this->model = new model();

    }


    /**
     * @author chenniang
     * @DataTime: 2020-04-22 10:08
     * @功能说明:直播列表页
     */
    public function liveList(){

        $input = $this->_input;

        $dis[] = ['uniacid','=',$this->_uniacid];

        $dis[] = ['live_status','in',[101,102,103]];

        $data = $this->model->liveList($dis,10);

        return $this->success($data);
    }





}
